package com.aaa.hospital.Configurationterminal.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class AccessController {

    @RequestMapping({"/","/index"})
    public String index(){
        return "Client/index";
    }
    @RequestMapping("/index2")
    public String index2(){
        return "Client/index-2";
    }
    @RequestMapping("/index3")
    public String index3(){
        return "Client/index-3";
    }
    @RequestMapping("/dental")
    public String dental(){
        return "Client/dental-1";
    }
    @RequestMapping("/dental2")
    public String dental2(){
        return "Client/dental-2";
    }
    @RequestMapping("/doctors")
    public String doctors(){
        return "Client/doctors";
    }
    @RequestMapping("/faq")
    public String faq(){
        return "Client/faq";
    }
    @RequestMapping("/history")
    public String history(){
        return "Client/history-slide";
    }
    @RequestMapping("/medicine")
    public String medicine(){
        return "Client/medicine-details";
    }
    @RequestMapping("/notice")
    public String notice(){
        return "Client/notice";
    }
    @RequestMapping("/pharmacy")
    public String pharmacy(){
        return "Client/pharmacy";
    }
    @RequestMapping("/services")
    public String services(){
        return "Client/services";
    }
    @RequestMapping("/chap1/{id}")
    public String chap1_1(@PathVariable("id") int id){
        System.out.println(id);
        return "view/chap1/"+id;
    }
    @RequestMapping("/chap2/{id}")
    public String chap2_1(@PathVariable("id") int id){
        return "view/chap2/"+id;
    }
    @RequestMapping("/chap3/{id}")
    public String chap3_1(@PathVariable("id") int id){
        return "view/chap3/"+id;
    }
}
